Diamond Inheritance and Attribute Types in Timor

نویسندگان

  • James Leslie Keedy
  • Christian Heinlein
  • Gisela Menger
  • Mark Evered
چکیده

In Timor multiple inheritance of methods from a common abstract ancestor (e.g. Collection) and of separate "parts" (possibly repeatedly) from distinct supertypes (e.g. a Radio, a Cassette Player) are handled in different ways. The paper shows that neither technique is suitable for cases where a common concrete ancestor (e.g. Person) is specialised in different subtypes (e.g. as a Student, an Employee) and then brought together in a new subtype, possibly with repeated inheritance (e.g. a Doubly Employed Student). For such cases a new kind of type ("attribute types") is proposed, which provides an alternative programming paradigm to inheritance, based on the idea of adjectives and their use in noun phrases in natural languages.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Inheriting Multiple and Repeated Parts in Timor

The paper describes one aspect of multiple inheritance in the Timor programming language, viz. how "parts" such as a type Radio and a type Cassette Player can be inherited, where appropriate repeatedly, in subtypes such as a Radio Double Cassette Player. Because such types can also be defined via aggregation the paper begins by comparing inheritance with aggregation. It then shows how such case...

متن کامل

An Investigation on Two Types of Crystalline Micro-diamond Film Coated Tools Lapping with Sapphire Wafer

Two types of micron-diamond films were prepared on YG6 substrate by hot filament chemical vapor deposition(HFCVD) method. Morphology and orientation of crystalline growth were evaluated by SEM and XRD. Diamond film coated tools and sapphire wafer’ surface before and after lapping experiment  were contrasted. The results indicated that a significant change in Raman spectrum of two types of micro...

متن کامل

Inheriting from a Common Abstract Ancestor in Timor

A particular case of multiple inheritance, involving a family of related types with a common abstract ancestor, is examined, and a substantial example, involving five abstract and nine concrete collection types, is presented. The separation of types and implementations, together with the separation of subtyping and code re-use, results in a clearly structured and easily intelligible type librar...

متن کامل

Laser Micro-Raman Spectroscopy of CVD Nanocrystalline Diamond Thin Film

Laser micro-Raman spectroscopy is an ideal tool for assessment and characterization of various types of carbon-based materials. Due to its special optical properties (CrN) coated stainless steel substrates. NCD films have been investigated by laser micro-Raman spectroscopy. The fingerprint of diamond based materials is in the spectral region of 1000-1600 cm-1 in the first order of Raman scatter...

متن کامل

Support for Subtyping and Code Re-use in Timor

Unlike most object oriented programming languages Timor, which has been designed to support component development, replaces the class construct with separate constructs for defining types and their implementations (which are not types). It also distinguishes between behaviourally conforming subtyping and the inclusion of behaviourally deviant interfaces in the definition of derived types. The s...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • Journal of Object Technology

دوره 3  شماره 

صفحات  -

تاریخ انتشار 2004